# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=mythes
pkgver=1.2.4
pkgrel=3
pkgdesc="A simple thesaurus"
url="https://hunspell.sourceforge.net/"
arch="all"
license="GPL-2.0-or-later LGPL-2.0-or-later MPL-1.1"
subpackages="$pkgname-dev"
depends_dev="perl hunspell-dev"
makedepends="$depends_dev"
source="https://downloads.sourceforge.net/hunspell/$pkgname-$pkgver.tar.gz"

prepare() {
	default_prepare

	update_config_sub
	update_config_guess
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-static \
		--disable-dependency-tracking \
		--enable-fast-install
	make
}

package() {
	make -j1 DESTDIR="$pkgdir" install
}

dev() {
	default_dev

	amove usr/bin
}

sha512sums="a04da39812bcfb1391a2cba7de73e955eafe141679ec03ed6657d03bebf360b432480d0037dff9ed72a1dfda5a70d77d44ac2bb14cdb109fd8e2a38376feee21  mythes-1.2.4.tar.gz"
